﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace QBWeb.ViewModels
{
    public class JsonResultModel
    {
        public object data;
        public string code;
        public string msg;
        public bool success;

        public JsonResultModel()
        {
            this.code = "0";
            this.msg = "操作成功";
            this.success = true;
        }

        public JsonResultModel(string code, string msg)
        {
            this.code = code;
            this.msg = msg;
        }

        public JsonResultModel(object data)
        {
            this.data = data;
            this.code = "0";
            this.msg = "操作成功";
            this.success = true;
        }

        public JsonResultModel(object data, string msg)
        {
            this.code = "0";
            this.msg = msg;
            this.success = true;
        }
    }
}